package pojo;

import javax.validation.constraints.Size;

public class Car {
    @Size(min = 1, max = 5, message = "{aaa.bbb.ccc}")
    private String brand;
    private long price;

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                ", price=" + price +
                '}';
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public long getPrice() {
        return price;
    }

    public void setPrice(long price) {
        this.price = price;
    }
}
